package com.jml.oom;


import java.util.ArrayList;
import java.util.List;

/**
 * @author:jml
 * @date: 2019/5/8 17:27
 * @description：
 */
public class GCOverHeadLimit {

    public static void main(String[] args) {

        int i = 0;
        String s = String.valueOf(++i);
        s.intern();
        List<String> list = new ArrayList<>();
        try {
            while(true){
                list.add(String.valueOf(++i).intern());
            }
        } catch (Throwable e) {
            System.out.println("===i:"+i);
            e.printStackTrace();
            throw e;
        }

    }
}
